﻿
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sproc_ReadBBSForumItem]') AND type in (N'P', N'PC'))
    DROP PROCEDURE [dbo].[sproc_ReadBBSForumItem];
GO
CREATE PROCEDURE [dbo].[sproc_ReadBBSForumItem]
    @item_id int
/*

============================================================
功能:    读取论坛帖子
参数:
    @item_id int        :    帖子ID    
============================================================

*/
AS
SELECT * 
    FROM uds_bbs_forumitem
    WHERE item_id = @item_id
UPDATE uds_bbs_forumitem 
    SET hit_times = hit_times +1
    WHERE item_id = @item_id